import { api } from './request'

const requestApi = {
  queryBillList: '/bill/queryBillList',
  cancelBill: '/bill/cancelBill',
  queryBillInfo: '/bill/queryBillInfo',
  queryBillInvoiceList: '/bill/queryBillInvoiceList',
  addBillInvoice: '/bill/addBillInvoice',
  updateBillInvoice: '/bill/updateBillInvoice',
  deleteBillInvoice: '/bill/deleteBillInvoice',
  updateBillEndDate: '/bill/updateBillEndDate',
  queryBillReceivablePayableList: '/bill/queryBillReceivablePayableList',
  addBillReceivablePayable: '/bill/addBillReceivablePayable',
  updateBillReceivablePayable: '/bill/updateBillReceivablePayable',
  deleteBillReceivablePayable: '/bill/deleteBillReceivablePayable',
  createBill: '/bill/createBill',
  addToBill: '/bill/addToBill',
  cancelFromBill: '/bill/cancelFromBill',
  // 佳华订单—应收应付明细
  queryJHOrderBillCostList: '/bill/queryJHOrderBillCostList',
  // 佳华箱管—应收应付明细
  queryJHContainerBillCostList: '/bill/queryJHContainerBillCostList',
  // 佳华船舶—应收应付明细
  queryJHVoyageBillCostList: '/bill/queryJHVoyageBillCostList',
  // 佳创—应收应付明细
  queryJCVoyageBillCostList: '/bill/queryJCVoyageBillCostList',
  // 佳特结算—应收应付明细
  queryJTBillCostList: '/bill/queryJTBillCostList',

  // 集团
  queryCompanyProfitReportList: '/bill/queryCompanyProfitReportList', // 查询集团利润报表集合
  addCompanyProfitReport: '/bill/addCompanyProfitReport',
  updateCompanyProfitReport: '/bill/updateCompanyProfitReport',
  queryCompanyCapitalAccountList: '/bill/queryCompanyCapitalAccountList', // 查询集团资金账户
  addCompanyCapitalAccount: '/bill/addCompanyCapitalAccount',
  updateCompanyCapitalAccount: '/bill/updateCompanyCapitalAccount',
  queryCapitalAccountDetail: '/bill/queryCapitalAccountDetail', // 查询资金账户明细
  addCapitalAccountDetail: '/bill/addCapitalAccountDetail',
  updateCapitalAccountDetail: '/bill/updateCapitalAccountDetail',
  deleteCapitalAccountDetail: '/bill/deleteCapitalAccountDetail',
  queryCompanyCapitalFixed: '/bill/queryCompanyCapitalFixed', // 查询固定资产列表
  addCompanyCapitalFixed: '/bill/addCompanyCapitalFixed',
  updateCompanyCapitalFixed: '/bill/updateCompanyCapitalFixed',
  deleteCompanyCapitalFixed: '/bill/deleteCompanyCapitalFixed',
  queryShipVoyageSubsidy: '/bill/queryShipVoyageSubsidy', // 查询航次补贴列表及数据
  queryCapitalAccountSelectList: '/bill/queryCapitalAccountSelectList',
  addShipVoyageSubsidy: '/bill/addShipVoyageSubsidy',
  updateShipVoyageSubsidy: '/bill/updateShipVoyageSubsidy',

  exportCheckResult: '/bill/exportCheckResult', // 佳华订单—自动对账导出
  queryBillReceivablePayable: '/bill/queryBillReceivablePayable' // 账单实收实付记录查询

}

export default requestApi

export const queryBillList = (data) => api(requestApi.queryBillList, data)
export const cancelBill = (data) => api(requestApi.cancelBill, data)
export const queryBillInfo = (data) => api(requestApi.queryBillInfo, data)
export const queryBillInvoiceList = (data) => api(requestApi.queryBillInvoiceList, data)
export const addBillInvoice = (data) => api(requestApi.addBillInvoice, data)
export const updateBillInvoice = (data) => api(requestApi.updateBillInvoice, data)
export const deleteBillInvoice = (data) => api(requestApi.deleteBillInvoice, data)
export const updateBillEndDate = (data) => api(requestApi.updateBillEndDate, data)
export const queryBillReceivablePayableList = (data) => api(requestApi.queryBillReceivablePayableList, data)
export const queryBillReceivablePayable = (data) => api(requestApi.queryBillReceivablePayable, data)
export const addBillReceivablePayable = (data) => api(requestApi.addBillReceivablePayable, data)
export const updateBillReceivablePayable = (data) => api(requestApi.updateBillReceivablePayable, data)
export const deleteCapitalAccountDetail = (data) => api(requestApi.deleteCapitalAccountDetail, data)
export const deleteBillReceivablePayable = (data) => api(requestApi.deleteBillReceivablePayable, data)
export const createBill = (data) => api(requestApi.createBill, data)
export const addToBill = (data) => api(requestApi.addToBill, data)
export const cancelFromBill = (data) => api(requestApi.cancelFromBill, data)

export const queryJHOrderBillCostList = (data) => api(requestApi.queryJHOrderBillCostList, data)
export const queryJHContainerBillCostList = (data) => api(requestApi.queryJHContainerBillCostList, data)
export const queryJHVoyageBillCostList = (data) => api(requestApi.queryJHVoyageBillCostList, data)
export const queryJCVoyageBillCostList = (data) => api(requestApi.queryJCVoyageBillCostList, data)
export const queryJTBillCostList = (data) => api(requestApi.queryJTBillCostList, data)

export const queryCompanyProfitReportList = (data) => api(requestApi.queryCompanyProfitReportList, data)
export const addCompanyProfitReport = (data) => api(requestApi.addCompanyProfitReport, data)
export const updateCompanyProfitReport = (data) => api(requestApi.updateCompanyProfitReport, data)
export const queryCompanyCapitalAccountList = (data) => api(requestApi.queryCompanyCapitalAccountList, data)
export const addCompanyCapitalAccount = (data) => api(requestApi.addCompanyCapitalAccount, data)
export const updateCompanyCapitalAccount = (data) => api(requestApi.updateCompanyCapitalAccount, data)
export const queryCapitalAccountDetail = (data) => api(requestApi.queryCapitalAccountDetail, data)
export const addCapitalAccountDetail = (data) => api(requestApi.addCapitalAccountDetail, data)
export const updateCapitalAccountDetail = (data) => api(requestApi.updateCapitalAccountDetail, data)
export const queryCompanyCapitalFixed = (data) => api(requestApi.queryCompanyCapitalFixed, data)
export const addCompanyCapitalFixed = (data) => api(requestApi.addCompanyCapitalFixed, data)
export const updateCompanyCapitalFixed = (data) => api(requestApi.updateCompanyCapitalFixed, data)
export const deleteCompanyCapitalFixed = (data) => api(requestApi.deleteCompanyCapitalFixed, data)
export const queryCapitalAccountSelectList = (data) => api(requestApi.queryCapitalAccountSelectList, data)
export const queryShipVoyageSubsidy = (data) => api(requestApi.queryShipVoyageSubsidy, data)
export const addShipVoyageSubsidy = (data) => api(requestApi.addShipVoyageSubsidy, data)
export const updateShipVoyageSubsidy = (data) => api(requestApi.updateShipVoyageSubsidy, data)

export const exportCheckResult = (data) => api(requestApi.exportCheckResult, data)
